﻿<Page
    x:Class="CameraDemo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CameraDemo"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid x:Name="Input" Grid.Row="0" Margin="100,40,0,0">
            <StackPanel Orientation="Horizontal" Margin="0,0,0,10">
                <Button x:Name="CaptureButton" Content="Capture Photo" Margin="0,0,10,0" Click="CapturePhoto_Click" />
                <Button x:Name="ResetButton" Content="Reset" Margin="0,0,10,0" Click="Reset_Click" />
            </StackPanel>
        </Grid>

        <Grid x:Name="Output" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" Margin="100,0,0,0">
            <Image x:Name="CapturedPhoto" AutomationProperties.Name="A placeholder image"
                   Source="Assets/StoreLogo.png"
                   HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="None" />
        </Grid>
    </Grid>
</Page>